package app

import "github.com/gin-gonic/gin"

func GetUid(ctx *gin.Context) (gid uint64) {
	g, exist := ctx.Get("uid")
	if !exist {
		return 0
	} else {
		return g.(uint64)
	}
}
